<!DOCTYPE html>
<html>
<head>
    <title>物流类型表</title>
    <#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
            <form class="form-inline" role="form">
                <a class="btn btn-default btn-sm"  @click="query">查询</a>&nbsp;&nbsp;&nbsp;
                <div class="form-group">
                    <input type="text" class="form-control input-sm" v-model="q.logisticsName" @keyup.enter="query" placeholder="物流名称">
                </div>&nbsp;&nbsp;&nbsp;
                <div class="form-group">
                    <select class="form-control input-sm" v-model="q.logisticsCategory" @keyup.enter="query" placeholder="物流分类">
                        <option value="">全部</option>
                        <option v-for="item in e.logisticsTypeEnum" :value="item.id">{{item.describe}}</option>
                    </select>
                </div>&nbsp;&nbsp;&nbsp;
                <!--<#if shiro.hasPermission("logistics:logisticstype:save")>-->
                <a class="btn btn-primary btn-sm" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
                <!--</#if>-->
                <!--<#if shiro.hasPermission("logistics:logisticstype:update")>-->
                <a class="btn btn-primary btn-sm" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
                <!--</#if>-->
                <!--<#if shiro.hasPermission("logistics:logisticstype:delete")>-->
                <a class="btn btn-primary btn-sm" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
                <!--</#if>-->
            </form>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default" align="center">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
            <div class="form-group">
                <div class="col-sm-2 control-label"><span style="color: red">*&nbsp;</span>物流名称</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="logisticsType.logisticsName" placeholder="物流名称"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label"><span style="color: red">*&nbsp;</span>物流分类</div>
                <div class="col-sm-10">
                    <!--<input type="text" class="form-control" v-model="logisticsType.logisticsCategory" placeholder="物流分类"/>-->
                    <select class="form-control" v-model="logisticsType.logisticsCategory" >
                        <option v-for="item in e.logisticsTypeEnum" :value="item.id">{{item.describe}}</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">描述</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="logisticsType.describe" placeholder="描述"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary btn-sm" @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning btn-sm" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>

<script src="${request.contextPath}/statics/js/modules/logistics/logisticstype.js?_${.now?long}"></script>
</body>
</html>